package com.yanfan.music.domain;

import java.util.Date;

import lombok.Data;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yanfan.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 背景音乐播放状态对象 ibms_music_play_status
 *
 * @author genluo
 * @date 2024-08-27
 */

@Data
public class IbmsMusicPlayStatus implements Serializable{

private static final long serialVersionUID=1L;

    /**
     * 状态id
     */
    @Excel(name = "状态id")
    @TableId(value = "status_id" , type = IdType.AUTO) // 整型类型使用自增
    private Long statusId;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    /**
     * 当前音量
     */
    @Excel(name = "当前音量")
    private Long currentVolume;

    /**
     * 是否播放
     */
    @Excel(name = "是否播放")
    private Integer isPlaying;

    /**
     * 当前轨道
     */
    @Excel(name = "当前轨道")
    private String currentTrack;

    /**
     * 最后更新时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后更新时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "最后更新时间不能为空")
    private Date lastUpdateTime;


}
